-- GENERATED SPELL FOR [Grimnok Battleborn] --


function spell0_20095(pUnit, Event) --@Bloodmaul Rage,Self--
pUnit:FullCastSpellOnTarget(37786,pUnit)
pUnit:RegisterEvent('Sorts_20095', 9000, 1)
end

function spell1_20095(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20095', 594, 1)
end

function Sorts_20095(pUnit, Event)
local choix_sorts_20095 = math.random(0, 1)
if choix_sorts_20095 == 0 then
pUnit:RegisterEvent('spell0_20095', 1, 1)
end
if choix_sorts_20095 == 1 then
pUnit:RegisterEvent('spell1_20095', 1, 1)
end
end

function mob20095_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20095', math.random(1500, 3000), 1)
end

function mob20095_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20095_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20095_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20095, 1, 'mob20095_Action')
RegisterUnitEvent(20095, 2, 'mob20095_Leave')
RegisterUnitEvent(20095, 3, 'mob20095_Kill')
RegisterUnitEvent(20095, 4, 'mob20095_Die')
